\documentclass{article}
\usepackage{graphicx}
\usepackage{paralist} % needed for compact lists
\usepackage[normalem]{ulem} % needed by strike
\usepackage[urlcolor=blue,colorlinks=true]{hyperref}

\begin{document}
\maketitle
\clearpage


\section*{Simple table}

\begin{center}\begin{tabular}{lll}
Cell 1-1 & Cell 1-2 & Cell 1-3 \\
Cell 2-1 & Cell 2-2 & Cell 2-3 \\
Cell 3-1 & Cell 3-2 & Cell 3-3 \\
\end{tabular}\end{center}

\section*{Simple table + border}

\begin{center}\begin{tabular}{|l|l|l|}
\hline Cell 1-1 & Cell 1-2 & Cell 1-3 \\
\hline Cell 2-1 & Cell 2-2 & Cell 2-3 \\
\hline Cell 3-1 & Cell 3-2 & Cell 3-3 \\
\hline \end{tabular}\end{center}

\section*{Simple table + heading}

\begin{center}\begin{tabular}{lll}
\textbf{Head 1-1} & \textbf{Head 1-2} & \textbf{Head 1-3} \\
Cell 1-1 & Cell 1-2 & Cell 1-3 \\
Cell 2-1 & Cell 2-2 & Cell 2-3 \\
Cell 3-1 & Cell 3-2 & Cell 3-3 \\
\end{tabular}\end{center}

\section*{Simple table + heading + border}

\begin{center}\begin{tabular}{|l|l|l|}
\hline \textbf{Head 1-1} & \textbf{Head 1-2} & \textbf{Head 1-3} \\
\hline Cell 1-1 & Cell 1-2 & Cell 1-3 \\
\hline Cell 2-1 & Cell 2-2 & Cell 2-3 \\
\hline Cell 3-1 & Cell 3-2 & Cell 3-3 \\
\hline \end{tabular}\end{center}

\section*{Simple table + heading + border + footer}

\begin{center}\begin{tabular}{|l|l|l|}
\hline \textbf{Head 1-1} & \textbf{Head 1-2} & \textbf{Head 1-3} \\
\hline Cell 1-1 & Cell 1-2 & Cell 1-3 \\
\hline Cell 2-1 & Cell 2-2 & Cell 2-3 \\
\hline Cell 3-1 & Cell 3-2 & Cell 3-3 \\
\hline \textbf{Foot 1-1} & \textbf{Foot 1-2} & \textbf{Foot 1-3} \\
\hline \end{tabular}\end{center}

\section*{Simple table + heading + border + centralized}

\begin{center}\begin{tabular}{|l|l|l|}
\hline \textbf{Head 1-1} & \textbf{Head 1-2} & \textbf{Head 1-3} \\
\hline Cell 1-1 & Cell 1-2 & Cell 1-3 \\
\hline Cell 2-1 & Cell 2-2 & Cell 2-3 \\
\hline Cell 3-1 & Cell 3-2 & Cell 3-3 \\
\hline \end{tabular}\end{center}

\section*{Cell alignment}

\begin{center}\begin{tabular}{|l|l|}
\hline ======= & ======= \\
\hline $<$ & \multicolumn{1}{|r|}{$>$} \\
\hline \multicolumn{1}{|c|}{=} & \multicolumn{1}{|c|}{=} \\
\hline \multicolumn{1}{|r|}{$>$} & $<$ \\
\hline \end{tabular}\end{center}

\section*{Heading alignment}

\begin{center}\begin{tabular}{|l|l|}
\hline \textbf{=======} & \textbf{=======} \\
\hline \textbf{$<$} & \multicolumn{1}{|r|}{\textbf{$>$}} \\
\hline \multicolumn{1}{|c|}{\textbf{=}} & \multicolumn{1}{|c|}{\textbf{=}} \\
\hline \multicolumn{1}{|r|}{\textbf{$>$}} & \textbf{$<$} \\
\hline \end{tabular}\end{center}

\section*{Column span for cells}

\begin{center}\begin{tabular}{|l|l|l|l|}
\hline 1 & 2 & 3 & 4 \\
\hline 1 & 2 & \multicolumn{2}{|l|}{3 + 4} \\
\hline \multicolumn{3}{|l|}{1 + 2 + 3} & 4 \\
\hline 1 & \multicolumn{2}{|l|}{2 + 3} & 4 \\
\hline \multicolumn{4}{|l|}{1 + 2 + 3 + 4} \\
\hline \end{tabular}\end{center}

\section*{Column span for headings}

\begin{center}\begin{tabular}{|l|l|l|l|}
\hline \textbf{1} & \textbf{2} & \textbf{3} & \textbf{4} \\
\hline \textbf{1} & \textbf{2} & \multicolumn{2}{|l|}{\textbf{3 + 4}} \\
\hline \multicolumn{3}{|l|}{\textbf{1 + 2 + 3}} & \textbf{4} \\
\hline \textbf{1} & \multicolumn{2}{|l|}{\textbf{2 + 3}} & \textbf{4} \\
\hline \multicolumn{4}{|l|}{\textbf{1 + 2 + 3 + 4}} \\
\hline \end{tabular}\end{center}

\section*{Cell alignment + column span}

\begin{center}\begin{tabular}{|l|l|l|}
\hline ======= & ======= & ======= \\
\hline \multicolumn{2}{|l|}{$<$} & \multicolumn{1}{|c|}{=} \\
\hline \multicolumn{3}{|c|}{=} \\
\hline \multicolumn{1}{|c|}{=} & \multicolumn{2}{|r|}{$>$} \\
\hline \end{tabular}\end{center}

\section*{Heading alignment + column span}

\begin{center}\begin{tabular}{|l|l|l|}
\hline \textbf{=======} & \textbf{=======} & \textbf{=======} \\
\hline \multicolumn{2}{|l|}{\textbf{$<$}} & \multicolumn{1}{|c|}{\textbf{=}} \\
\hline \multicolumn{3}{|c|}{\textbf{=}} \\
\hline \multicolumn{1}{|c|}{\textbf{=}} & \multicolumn{2}{|r|}{\textbf{$>$}} \\
\hline \end{tabular}\end{center}

\section*{Some empty cells}

\begin{center}\begin{tabular}{|l|l|l|l|l|}
\hline A & B & C & D &  \\
\hline F & G & H &  & J \\
\hline K & L &  & N & O \\
\hline P &  & R & S & T \\
\hline  & V & W & X & Y \\
\hline \end{tabular}\end{center}

\section*{Lines with different number of cells, increase}

\begin{center}\begin{tabular}{|l|}
\hline 1 \\
\hline 1 & 2 \\
\hline 1 & 2 & 3 \\
\hline 1 & 2 & 3 & 4 \\
\hline 1 & 2 & 3 & 4 & 5 \\
\hline \end{tabular}\end{center}

\section*{Lines with different number of cells, decrease}

\begin{center}\begin{tabular}{|l|l|l|l|l|}
\hline 1 & 2 & 3 & 4 & 5 \\
\hline 1 & 2 & 3 & 4 \\
\hline 1 & 2 & 3 \\
\hline 1 & 2 \\
\hline 1 \\
\hline \end{tabular}\end{center}

\section*{One cell table}

\begin{center}\begin{tabular}{l}
Cell 1 \\
\end{tabular}\end{center}

\section*{One cell table + border}

\begin{center}\begin{tabular}{|l|}
\hline Cell 1 \\
\hline \end{tabular}\end{center}

\section*{One cell table + heading}

\begin{center}\begin{tabular}{l}
\textbf{Head 1} \\
\end{tabular}\end{center}

\section*{One cell table + heading + border}

\begin{center}\begin{tabular}{|l|}
\hline \textbf{Head 1} \\
\hline \end{tabular}\end{center}

\section*{Empty lines}

\begin{center}\begin{tabular}{|l|}
\hline  \\
\hline  \\
\hline  \\
\hline \end{tabular}\end{center}

% LaTeX2e code generated by txt2tags (http://txt2tags.org)
% cmdline: txt2tags -q --no-rc -i table.t2t -t tex
\end{document}
